package net.orange.architecture.db;

/**
 * The base cache data access object. when the system access the data, it will
 * search in the memory first. If it can't be found, so will continue search in
 * database.
 */
public interface ICacheDao extends IObjectManager {
	/**
	 * Find the object by the key from the cache.
	 * 
	 * @param key
	 *            The resource key.
	 * @return The target resource.
	 * @throws Exception
	 */
	public Object findByKey(Object key) throws Exception;
}
